﻿using Ctef.Web.Interfaces;
using Ctef.Web.Models;

namespace Ctef.Web.Repositories
{
    public class HomepageRepository : IHomepageRepository 
    {
        public MainPage GetHomepageModel(string locale, string filePath)
        {
            XmlDataRepository.Instance.InitializeMainPages(filePath);
            return XmlDataRepository.Instance.GetMainPageByLocale(locale);
        }
    }
}